package com.ym.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Table
@TableComment("登录信息表")
public class LoginInfo {

    @TableId(type = IdType.ASSIGN_ID)
    @IsKey
    @Column
    @ColumnComment("主键ID")
    private Long id;

    @Column(length = 11)
    @ColumnComment("手机号码")
    private String mobile;

    @Column(length = 20)
    @ColumnComment("角色类型")
    private String roleType;

    @Column(length = 128)
    @ColumnComment("ip地址")
    private String ip;

    @Column(length = 255)
    @ColumnComment("登录地址")
    private String loginLocation;

    @Column(length = 50)
    @ColumnComment("浏览器")
    private String browser;

    @Column(length = 50)
    @ColumnComment("操作系统")
    private String os;

    @Column(length = 255)
    @ColumnComment("信息")
    private String msg;

    @Column
    @ColumnComment("访问时间")
    private LocalDateTime accessTime;


}
